<cfsetting enablecfoutputonly="true">
<!--- @@displayname: Display TEASER cfugwa RSS --->

<cfimport taglib="/farcry/core/tags/webskin" prefix="skin" />

<!--- <cfset o = createObject("component",application.types['cfugwarss'].typepath)>
<cfset qRecordSet = queryNew("objectID") />
<cfset lCategoryObjectIDs = "" />
<cfset qObjectsMatchingCategories = queryNew("objectID") />

<cfif listLen(stObj.Category)>
	<cfset qObjectsMatchingCategories = createObject("component","farcry.core.packages.farcry.category").getData(typename="cfugwarss", lCategoryids=stobj.Category) />
	<cfset lCategoryObjectIDs = valueList(qObjectsMatchingCategories.objectid) />
</cfif>		

<cfset qRecordSet = o.getMultipleByQuery(maxRows=stObj.numItems, OrderBy="title", sortOrder="desc", lObjectIDs="#lCategoryObjectIDs#") />
 --->
<cftry>
	<cfset oRSS = createObject("component",application.types['cfugwarss'].typepath)>
	<cfset qryFeeds = oRSS.getAggregatedQuery() />

	<cfloop query="qryFeeds">
		<cfset stParam = StructNew() />
		<cfset stParam.title         = qryFeeds.Title />
		<cfset stParam.PUBLISHEDDATE = qryFeeds.PUBLISHEDDATE />
		<cfset stParam.AUTHORNAME    = qryFeeds.AUTHORNAME />
		<cfset stParam.CONTENT       = qryFeeds.CONTENT />
		<cfset stParam.RSSLINK       = qryFeeds.RSSLINK />
		<cfset stParam.sortTS        = qryFeeds.sortTS />
		<cfset stParam.rssTitle      = qryFeeds.rssTitle />
		
		<skin:view objectid="#stobj.objectid#" typename="ruleLatestCFUGWARSS" webskin="teaserFeedItem"  stParam="#stParam#" />
	</cfloop>
<cfcatch >
	<cfdump var="#CFCATCH#" label="Error">
</cfcatch>
</cftry>
<cfsetting enablecfoutputonly="false">